# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=safeeyes
pkgver=2.1.6
pkgrel=0
pkgdesc="Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder"
url="http://slgobinath.github.io/SafeEyes/"
arch="noarch"
license="GPL-3.0-only"
depends="
	libayatana-appindicator
	py3-babel
	py3-dbus
	py3-psutil
	py3-xlib
	python3
	xprintidle
	"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/slgobinath/SafeEyes/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/SafeEyes-$pkgver"
options="!check" # no upstream checks

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
f74a63bef86477cfd73f23d6154f9b6091b2b60e87e637afcbe87ec1fa60d1fa336dcb53758a21c2c58d0e3c55855545e345ed0492a018bec1c166be28b5f3c9  safeeyes-2.1.6.tar.gz
"
